<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<h:form id="menu_form">
  <h:panelGrid 
      columns="1"
      cellpadding="0"
      cellspacing="0"
      styleClass="menuGrid"
      headerClass="menu_top"
      footerClass="menu_bottom">

    <f:facet name="header">
      <h:graphicImage styleClass="menu_corner" url="/images/menu_top_corner.gif" />
    </f:facet>
    <f:facet name="footer">
      <h:graphicImage styleClass="menu_corner" url="/images/menu_bottom_corner.gif" />
    </f:facet>

    <h:commandLink 
        styleClass="menuLink"
        onclick="toggle_submenu('menu_teacher:menu_form:current_event_submenu'); return false;">

      <h:outputText value="Aktualne zajecia" styleClass="menuItem" />
    </h:commandLink>
    <h:panelGrid id="current_event_submenu" columns="1"  cellpadding="0" cellspacing="0" styleClass="submenu_hidden">
      <h:commandLink action="nav_current_event_attendance" styleClass="menuLink">
        <h:outputText value="Sprawdz obecnosc" styleClass="submenuItem" />
      </h:commandLink>
      <h:commandLink action="nav_current_event_groups" styleClass="menuLink">
        <h:outputText value="Ocen grupy" styleClass="submenuItem" />
      </h:commandLink>
    </h:panelGrid>

    <h:commandLink action="nav_event_list" styleClass="menuLink">
      <h:outputText value="Lista spotkan" styleClass="menuItem" />
    </h:commandLink>
    <h:commandLink action="nav_student_list" styleClass="menuLink">
      <h:outputText value="Lista studentow" styleClass="menuItem" />
    </h:commandLink>
    <h:commandLink action="nav_project_list" styleClass="menuLink">
      <h:outputText value="Tematy projektow" styleClass="menuItem" />
    </h:commandLink>

  </h:panelGrid>
</h:form>
